var grid=null;
$(document).ready(function(){
	grid=$("#resultTable").datagrid({
		 height:$(document).height(),
		 url:base+rootPath+"/getData"+suffix,
		 queryParams:{},
		 sortName:"seq",
		 sortOrder:"ASC",
		 idField:"id",
		 toolbar:toolbar,
		 columns:[[
		       {field:"no",checkbox:true},
		       {field:"id",title:"id",hidden:true},
		       {field:"name",title:"润滑项目",align:"center",sortable:true},
		       {field:"description",title:"描述",align:"center",sortable:false,formatter:formatDescr},
		       {field:"seq",title:"排序",align:"center",sortable:true,hidden:true},
		       {field:"createTime",title:"创建时间",align:"center",sortable:true},
		       {field:"operate",title:"操作",align:"center",formatter:operateFunction}
		       ]]
	});
});
